/**
 * 
 */
package com;

import java.math.BigInteger;

/**
 * TestCovert.
 * 
 * @author LionBule 2012-3-14 下午2:11:53
 */
public class TestCovert {

    /**
     * @param args
     */
    public static void main(String[] args) {
//        BigInteger t = new BigInteger("1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111".replaceAll(" ", ""), 2);
//        String b = t.toString();
//        System.out.println(b);
//        System.out.println(1/2.00);

        String st = "111-${HOSTNAME}-2222";
        st = st.replaceAll("\\$\\{HOSTNAME\\}", "tiesheng_pc");
        System.out.println(st);
    }

}
